import request from '@/utils/request'

// 查询二级菜单信息列表
export function listZfbl(query) {
  return request({
    url: '/yjzf/zfbl/list',
    method: 'get',
    params: query
  })
}

// 查询二级菜单信息详细
export function getZfbl(yjzfblId) {
  return request({
    url: '/yjzf/zfbl/' + yjzfblId,
    method: 'get'
  })
}

// 新增二级菜单信息
export function addZfbl(data) {
  return request({
    url: '/yjzf/zfbl',
    method: 'post',
    data: data
  })
}

// 修改二级菜单信息
export function updateZfbl(data) {
  return request({
    url: '/yjzf/zfbl',
    method: 'put',
    data: data
  })
}

// 删除二级菜单信息
export function delZfbl(yjzfblId) {
  return request({
    url: '/yjzf/zfbl/' + yjzfblId,
    method: 'delete'
  })
}
